<?php $this->load->view(TEMPLATE_NAME.'/admin/header');?>
<?php $this->load->view(TEMPLATE_NAME.'/admin/side_left');?>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery.validate.pack.js"></script>
<script type="text/javascript">       
    $(document).ready(function(){
        /* jquery validation */
        //custom validation rule - username not equal with 'Your e-mail address'
	     
        $('#pass').hide();    
        $("#login_details").validate({
            rules: {
                username: "required",
                firstname: "required",
                surname: "required",
                email: "required",
                
                password : {                   
                    minlength: 6    
                },
                passconf : {                         
                    minlength: 6,   
					equalTo: "#password"
                }
            },
            messages: {
                username: "Please enter your Username",
                firstname : "Please enter your Password",
                surname: "Please enter your Surname",
                email: "Please enter your E-mail",  
				password: { 
					minlength: "Your password must be at least 6 characters long"
				},
				passconf: { 
					minlength: "Your password must be at least 6 characters long",
					equalTo: "Please enter the same password as above"
				}                 
            } 
        });
	     
        
        /* end jquery validation */
    });
</script>
<div class="page noright adminpage adminuser">
	<?php $this->load->view(TEMPLATE_NAME.'/admin/profile/profile_tabs');?>
	<h2 class="no">Delete</h2>
	<p class="black f13"><strong>Delete user from the database permanently - this cannot be undone...</strong></p>
	<hr />
	<?php echo form_open_multipart('admin/profile/delete_account',array('method' => 'post', 'class' => 'formstep formp', 'id' => 'login_details'));?><br />
	<p><?php echo form_checkbox('confirm_delete','delete'); ?> <strong>Yes, permanently delete me from the database. Cannot be undone.</strong></p>
	<p class="alert">Please indicate that you wish to remove this user by selecting the checkbox</p><!-- kalo ga diceklis keluar -->
	<hr />
	<h2 class="no">User Activation</h2>
	<strong class="black f13">Profile Activated:</strong>
	<select name="activate">
	<option value="0" <?php if ($detailUser['activation_status'] == 'active'){?>selected="selected"<?php }?>>Yes - profile has been activated</option>
	<option value="1" <?php if ($detailUser['activation_status'] == 'inactive'){?>selected="selected"<?php }?>>Activate this profile</option>
	</select>
	<hr />
	<?php 
	$form_button = array(
	'type'=>'submit',
	'name'=>'submit',
	'value'=>'submit',
	'content'=>'Submit',
	);
	echo form_button($form_button) ?>
	<div class="clear"></div>
	<?php echo form_close();?>
</div><!-- page -->
<?php $this->load->view(TEMPLATE_NAME.'/admin/footer');?>
